package com.company.cloud.club.modules.dto.project;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Builder;
import lombok.Data;

@Data
public class PageDto {
    private int currentPage ;

    private int pageSize ;

    private int total;

    @JsonIgnore
    public int getOffset() {
        return (currentPage - 1) * pageSize;
    }

    @JsonIgnore
    public int getCount() {
        return pageSize;
    }
}
